package com.sunwayhorizo.health.hl7.vocabulary;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

import com.sunwayhorizo.health.hl7.common.VersionInfo;
import com.sunwayhorizo.health.hl7.datatypes.CS;
import com.sunwayhorizo.health.hl7.datatypes.common.InternalFactory;

@SuppressWarnings({ "unchecked", "rawtypes" })
public class EntityCode {
	public static final String RCS_ID = "$Header: EntityCode.java 1.0 2010/12/19 10:25:27 rassubra noship $";
	public static final boolean RCS_ID_RECORDED = VersionInfo.recordClassVersion(
					"$Header: EntityCode.java 1.0 2010/12/19 10:25:27 rassubra noship $",
					"com.sunwayhorizo.health.hl7.vocabulary");

	public static CS PERSON;
	/**----------------------ORG----------------------**/
	public static CS HOSPITAL;					//机构   
	public static CS DEPARTMENT;				//科室
	public static CS WORKGROUP;				    //工作组
	public static CS SYSROLE;					//系统角色
		
	/**----------------------PLC----------------------**/
	public static CS BED;						//床位
	public static CS ROOM;						//房间
	
	/**----------------------ENT---------------------**/
	public static CS PERMISSION;				//系统权限
	public static CS TEMPCLASS;             	//电子病历模板类型
	public static CS TEMPFILE;              	//电子病历模板文件
	public static CS ACCOUNT;					//系统账号
	
	public static CS EMRCLASS;                  //电子病历模板文件
	
	public static CS THREELEVELSPHYSICIAN;      //三级医师
	
	public static CS MEDICALTEAM;               //医疗小组
	
	public static CS MENU; 
	
	public static CS PACKAGE;             //药品包装
	
	public static CS DRUG;                //药品
	
	private static final CS values[];
	public  static final Set ALL_VALUES;

	public EntityCode() {
	}

	// 初始化
	static {
		PERSON = InternalFactory.newCS("PERSON");
		TEMPCLASS = InternalFactory.newCS("TEMPCLASS");
		TEMPFILE = InternalFactory.newCS("TEMPFILE");
		BED = InternalFactory.newCS("BED");
		ROOM = InternalFactory.newCS("ROOM");
		HOSPITAL = InternalFactory.newCS("HOSPITAL");
		DEPARTMENT = InternalFactory.newCS("DEPARTMENT");
		WORKGROUP = InternalFactory.newCS("WORKGROUP");
		SYSROLE = InternalFactory.newCS("SYSROLE");
		PERMISSION = InternalFactory.newCS("PERMISSION");
		ACCOUNT = InternalFactory.newCS("ACCOUNT");
		EMRCLASS = InternalFactory.newCS("EMRCLASS");
		THREELEVELSPHYSICIAN = InternalFactory.newCS("THREELEVELSPHYSICIAN");
		MEDICALTEAM = InternalFactory.newCS("MEDICALTEAM");
		MENU = InternalFactory.newCS("MENU");
		PACKAGE = InternalFactory.newCS("PACKAGE");
		DRUG = InternalFactory.newCS("DRUG");


		values = (new CS[] {PERSON, TEMPCLASS, TEMPFILE,BED,ROOM,HOSPITAL,DEPARTMENT,WORKGROUP,SYSROLE,PERMISSION,ACCOUNT,EMRCLASS ,
				THREELEVELSPHYSICIAN,MEDICALTEAM,MENU,PACKAGE,DRUG});
		ALL_VALUES = new HashSet(Arrays.asList(values));
	}
}
